import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
       MySingleList mySingleList = new MySingleList();
//        mySingleList.createList();
//
//        mySingleList.display();
//        int count = mySingleList.size();
//        System.out.println(count);


//        System.out.println(mySingleList.contains(23));

//        mySingleList.remove(34);
//        mySingleList.display();

//        MySingleList.ListNode ret =  mySingleList.middleNode();
//        System.out.println(ret.val);


        mySingleList.addLast(12);
        mySingleList.addLast(13);
        mySingleList.addLast(13);
        mySingleList.addLast(12);

        mySingleList.display();

        System.out.println(mySingleList.chkPalindrome(mySingleList.head));
    }
}
